<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\Snowflake\Concern\Snowflake;

/**
 */
class HyUser extends Model
{
    use Snowflake{
        creating as create;
    }
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'hy_users';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['name'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['name'=>'string'];
    
    public $timestamps = false;

    public function creating()
    {
        $this->create();
//        var_dump("当前主键为：".$this->getKey());
    }
    
}